package be.jprojects.subscription.gui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class SpotlightPanel extends JPanel {
	public SpotlightPanel() {
	    super(new BorderLayout());  
	    JTextField tf = new JTextField(5);  
	    JLabel label = new JLabel(new ImageIcon("Resources/spotlight.png"));  
	    label.setOpaque(true);  
	    label.setBackground(tf.getBackground());  
	    label.setPreferredSize(new Dimension(label.getPreferredSize().width,tf.getPreferredSize().height));  
	    setBorder(tf.getBorder());  
	    tf.setBorder(null);  
	    add(label,BorderLayout.WEST);  
	    add(tf,BorderLayout.CENTER);  
	    JPanel p1 = new JPanel();
	}
}
